<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="../bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>

        div.modal-header{

              background-color: red;
        }

        div.modal-dialog button.btn-primary{
            float: right;
            margin-top: 10px;
            margin-right: 30px;
        }
        div.modal-dialog div.col-sm-6{
          padding: 20px;
          border-right: 1px dashed black;
        }
        div.modal-dialog form>.form-group{
          margin-bottom: 15px;
        }
        div.modal-dialog .col-sm-12>label{
          
          float: right;
          padding-left: 35px;

        }

        div.modal-dialog .col-sm-6{
          text-align: center; 
        }
        div.modal-dialog .col-sm-6>div{
          margin-top:50px;
        }
        #bug{
          position: relative;
          left: -6px;
        }
    </style>
        
  </head>
  <body>


    <!-- Button trigger modal -->
    <button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
      登陆 / 注册
    </button>

    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">

          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">用户登陆</h4>
          </div>

          <div class="modal-body">
            <div class="row">
              <div class="col-sm-6">

                <form class="form-inline">

                  <div class="form-group">
                    <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
                    <div class="input-group">
                      <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
                      <input type="text" class="form-control" id="exampleInputAmount" placeholder="邮箱或手机号">
                    </div>
                  </div>

                    <div class="form-group">
                    <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
                    <div class="input-group">
                      <div class="input-group-addon"><i class="glyphicon glyphicon-user"></i></div>
                      <input type="text" class="form-control" id="exampleInputAmount" placeholder="登陆密码">
                    </div>
                  </div>

                  <div class="form-group">
                    
                    <!-- 左偏移 -->
                    <div class="col-sm-12">
                      <div class="checkbox">
                        <label>
                          <input type="checkbox" id = "bug"> 记住我的登陆状态
                        </label>
                      </div>
                      <label>找回密码</label>
                    </div>
                  </div>

                  <button type="submit" class="btn btn-primary">登陆</button>

                </form>

              </div>

              <div class="col-sm-6">
                <div>
                      <p>还未开通,赶快免费注册一个</p>
                      <button>注册</button>
                </div>
              </div>
            </div>
          </div>
<!-- 
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            <button type="button" class="btn btn-primary">Save changes</button>
          </div> -->

        </div>
      </div>
    </div>

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="../jquery-3.3.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="../bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  </body>
</html>